#ifndef BASEFUNC_H
#define BASEFUNC_H

#include <QObject>
#include <QDebug>

#include "DataType/DataType.h"

class BaseFunc : public QObject
{
    Q_OBJECT
public:

    explicit BaseFunc(QObject *parent = 0):QObject(parent){}
    virtual ~BaseFunc(){}
    int functionCode() const
    {
        return m_functionCode;
    }

    void setFunctionCode(int functionCode)
    {
        m_functionCode = functionCode;
    }

    QString sourceDevice() const
    {
        return m_sourceDevice;
    }

    void setSourceDevice(const QString &SourceDevice)
    {
        m_sourceDevice = SourceDevice;
    }

protected:
    int m_functionCode;
    QString m_sourceDevice;
};

#endif // BASICFUNC_H
